<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>CUTLASS: cutlass::reduction::BatchedReduction&lt; BatchedReductionTraits_ &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
</script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="cutlass-logo-small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">CUTLASS
   </div>
   <div id="projectbrief">CUDA Templates for Linear Algebra Subroutines and Solvers</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacecutlass.html">cutlass</a></li><li class="navelem"><a class="el" href="namespacecutlass_1_1reduction.html">reduction</a></li><li class="navelem"><a class="el" href="structcutlass_1_1reduction_1_1BatchedReduction.html">BatchedReduction</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="structcutlass_1_1reduction_1_1BatchedReduction-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">cutlass::reduction::BatchedReduction&lt; BatchedReductionTraits_ &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="batched__reduction_8h_source.html">batched_reduction.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:ae0c48344c7457f17429e6ae7a76dba37"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="structcutlass_1_1reduction_1_1BatchedReduction.html">BatchedReduction</a>&lt; BatchedReductionTraits_ &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1reduction_1_1BatchedReduction.html#ae0c48344c7457f17429e6ae7a76dba37">This_</a></td></tr>
<tr class="memdesc:ae0c48344c7457f17429e6ae7a76dba37"><td class="mdescLeft">&#160;</td><td class="mdescRight">This class.  <a href="#ae0c48344c7457f17429e6ae7a76dba37">More...</a><br /></td></tr>
<tr class="separator:ae0c48344c7457f17429e6ae7a76dba37"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa50195fcf53f6d69ccfa37f44a524a99"><td class="memItemLeft" align="right" valign="top">typedef BatchedReductionTraits_&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1reduction_1_1BatchedReduction.html#aa50195fcf53f6d69ccfa37f44a524a99">Traits</a></td></tr>
<tr class="memdesc:aa50195fcf53f6d69ccfa37f44a524a99"><td class="mdescLeft">&#160;</td><td class="mdescRight">The traits.  <a href="#aa50195fcf53f6d69ccfa37f44a524a99">More...</a><br /></td></tr>
<tr class="separator:aa50195fcf53f6d69ccfa37f44a524a99"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a213c6812458c008435ed3ea710fe2454"><td class="memItemLeft" align="right" valign="top">typedef Traits::Params&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1reduction_1_1BatchedReduction.html#a213c6812458c008435ed3ea710fe2454">Params</a></td></tr>
<tr class="memdesc:a213c6812458c008435ed3ea710fe2454"><td class="mdescLeft">&#160;</td><td class="mdescRight">Params.  <a href="#a213c6812458c008435ed3ea710fe2454">More...</a><br /></td></tr>
<tr class="separator:a213c6812458c008435ed3ea710fe2454"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30605f35d51e4364fe80edb80eac5e80"><td class="memItemLeft" align="right" valign="top">typedef Traits::Functor&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1reduction_1_1BatchedReduction.html#a30605f35d51e4364fe80edb80eac5e80">Functor</a></td></tr>
<tr class="memdesc:a30605f35d51e4364fe80edb80eac5e80"><td class="mdescLeft">&#160;</td><td class="mdescRight">functor  <a href="#a30605f35d51e4364fe80edb80eac5e80">More...</a><br /></td></tr>
<tr class="separator:a30605f35d51e4364fe80edb80eac5e80"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a9d76da3dcf4d8ec0cfeb2134f73ea22b"><td class="memItemLeft" align="right" valign="top">CUTLASS_DEVICE&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1reduction_1_1BatchedReduction.html#a9d76da3dcf4d8ec0cfeb2134f73ea22b">BatchedReduction</a> (<a class="el" href="structcutlass_1_1reduction_1_1BatchedReduction.html#a213c6812458c008435ed3ea710fe2454">Params</a> const &amp;params_)</td></tr>
<tr class="memdesc:a9d76da3dcf4d8ec0cfeb2134f73ea22b"><td class="mdescLeft">&#160;</td><td class="mdescRight">ctor  <a href="#a9d76da3dcf4d8ec0cfeb2134f73ea22b">More...</a><br /></td></tr>
<tr class="separator:a9d76da3dcf4d8ec0cfeb2134f73ea22b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4bfcdfd8f2edeb4fc7081443584d599b"><td class="memItemLeft" align="right" valign="top">CUTLASS_DEVICE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1reduction_1_1BatchedReduction.html#a4bfcdfd8f2edeb4fc7081443584d599b">run</a> ()</td></tr>
<tr class="separator:a4bfcdfd8f2edeb4fc7081443584d599b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c1d173cbe3abd93bd7bd4c4bf0e0d26"><td class="memTemplParams" colspan="2">template&lt;bool ThreadShapeMultiple2&gt; </td></tr>
<tr class="memitem:a7c1d173cbe3abd93bd7bd4c4bf0e0d26"><td class="memTemplItemLeft" align="right" valign="top">CUTLASS_DEVICE void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structcutlass_1_1reduction_1_1BatchedReduction.html#a7c1d173cbe3abd93bd7bd4c4bf0e0d26">functor_caller</a> (typename Traits::ScalarAccum const *accum, typename Traits::ScalarAccum const *old, typename Traits::ScalarAccum *output)</td></tr>
<tr class="separator:a7c1d173cbe3abd93bd7bd4c4bf0e0d26"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:ab059393ac467ac365bd0b45c200befdf"><td class="memItemLeft" align="right" valign="top">static __host__ cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1reduction_1_1BatchedReduction.html#ab059393ac467ac365bd0b45c200befdf">launch</a> (<a class="el" href="structcutlass_1_1reduction_1_1BatchedReduction.html#a213c6812458c008435ed3ea710fe2454">Params</a> const &amp;<a class="el" href="structcutlass_1_1reduction_1_1BatchedReduction.html#a9c9d8378c735597f39927c6ab32519ef">params</a>, cudaStream_t stream=cudaStreamDefault)</td></tr>
<tr class="memdesc:ab059393ac467ac365bd0b45c200befdf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Launch the kernel.  <a href="#ab059393ac467ac365bd0b45c200befdf">More...</a><br /></td></tr>
<tr class="separator:ab059393ac467ac365bd0b45c200befdf"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a9c9d8378c735597f39927c6ab32519ef"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structcutlass_1_1reduction_1_1BatchedReduction.html#a213c6812458c008435ed3ea710fe2454">Params</a> const &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1reduction_1_1BatchedReduction.html#a9c9d8378c735597f39927c6ab32519ef">params</a></td></tr>
<tr class="memdesc:a9c9d8378c735597f39927c6ab32519ef"><td class="mdescLeft">&#160;</td><td class="mdescRight">The params.  <a href="#a9c9d8378c735597f39927c6ab32519ef">More...</a><br /></td></tr>
<tr class="separator:a9c9d8378c735597f39927c6ab32519ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f6b38c1b3a5800e6f29d9a2c6c1928d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structcutlass_1_1reduction_1_1BatchedReduction.html#a30605f35d51e4364fe80edb80eac5e80">Functor</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1reduction_1_1BatchedReduction.html#a0f6b38c1b3a5800e6f29d9a2c6c1928d">functor</a></td></tr>
<tr class="separator:a0f6b38c1b3a5800e6f29d9a2c6c1928d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Member Typedef Documentation</h2>
<a class="anchor" id="a30605f35d51e4364fe80edb80eac5e80"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename BatchedReductionTraits_ &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef Traits::Functor <a class="el" href="structcutlass_1_1reduction_1_1BatchedReduction.html">cutlass::reduction::BatchedReduction</a>&lt; BatchedReductionTraits_ &gt;::<a class="el" href="structcutlass_1_1reduction_1_1BatchedReduction.html#a30605f35d51e4364fe80edb80eac5e80">Functor</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a213c6812458c008435ed3ea710fe2454"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename BatchedReductionTraits_ &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef Traits::Params <a class="el" href="structcutlass_1_1reduction_1_1BatchedReduction.html">cutlass::reduction::BatchedReduction</a>&lt; BatchedReductionTraits_ &gt;::<a class="el" href="structcutlass_1_1reduction_1_1BatchedReduction.html#a213c6812458c008435ed3ea710fe2454">Params</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ae0c48344c7457f17429e6ae7a76dba37"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename BatchedReductionTraits_ &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="structcutlass_1_1reduction_1_1BatchedReduction.html">BatchedReduction</a>&lt;BatchedReductionTraits_&gt; <a class="el" href="structcutlass_1_1reduction_1_1BatchedReduction.html">cutlass::reduction::BatchedReduction</a>&lt; BatchedReductionTraits_ &gt;::<a class="el" href="structcutlass_1_1reduction_1_1BatchedReduction.html#ae0c48344c7457f17429e6ae7a76dba37">This_</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="aa50195fcf53f6d69ccfa37f44a524a99"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename BatchedReductionTraits_ &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef BatchedReductionTraits_ <a class="el" href="structcutlass_1_1reduction_1_1BatchedReduction.html">cutlass::reduction::BatchedReduction</a>&lt; BatchedReductionTraits_ &gt;::<a class="el" href="structcutlass_1_1reduction_1_1BatchedReduction.html#aa50195fcf53f6d69ccfa37f44a524a99">Traits</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a9d76da3dcf4d8ec0cfeb2134f73ea22b"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename BatchedReductionTraits_ &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">CUTLASS_DEVICE <a class="el" href="structcutlass_1_1reduction_1_1BatchedReduction.html">cutlass::reduction::BatchedReduction</a>&lt; BatchedReductionTraits_ &gt;::<a class="el" href="structcutlass_1_1reduction_1_1BatchedReduction.html">BatchedReduction</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structcutlass_1_1reduction_1_1BatchedReduction.html#a213c6812458c008435ed3ea710fe2454">Params</a> const &amp;&#160;</td>
          <td class="paramname"><em>params_</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a7c1d173cbe3abd93bd7bd4c4bf0e0d26"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename BatchedReductionTraits_ &gt; </div>
<div class="memtemplate">
template&lt;bool ThreadShapeMultiple2&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">CUTLASS_DEVICE void <a class="el" href="structcutlass_1_1reduction_1_1BatchedReduction.html">cutlass::reduction::BatchedReduction</a>&lt; BatchedReductionTraits_ &gt;::functor_caller </td>
          <td>(</td>
          <td class="paramtype">typename Traits::ScalarAccum const *&#160;</td>
          <td class="paramname"><em>accum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">typename Traits::ScalarAccum const *&#160;</td>
          <td class="paramname"><em>old</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">typename Traits::ScalarAccum *&#160;</td>
          <td class="paramname"><em>output</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ab059393ac467ac365bd0b45c200befdf"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename BatchedReductionTraits_ &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static __host__ cudaError_t <a class="el" href="structcutlass_1_1reduction_1_1BatchedReduction.html">cutlass::reduction::BatchedReduction</a>&lt; BatchedReductionTraits_ &gt;::launch </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structcutlass_1_1reduction_1_1BatchedReduction.html#a213c6812458c008435ed3ea710fe2454">Params</a> const &amp;&#160;</td>
          <td class="paramname"><em>params</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">cudaStream_t&#160;</td>
          <td class="paramname"><em>stream</em> = <code>cudaStreamDefault</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a4bfcdfd8f2edeb4fc7081443584d599b"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename BatchedReductionTraits_ &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">CUTLASS_DEVICE void <a class="el" href="structcutlass_1_1reduction_1_1BatchedReduction.html">cutlass::reduction::BatchedReduction</a>&lt; BatchedReductionTraits_ &gt;::run </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>main operation method D = alpha * Reduction(A) + beta * C </p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a0f6b38c1b3a5800e6f29d9a2c6c1928d"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename BatchedReductionTraits_ &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structcutlass_1_1reduction_1_1BatchedReduction.html#a30605f35d51e4364fe80edb80eac5e80">Functor</a> <a class="el" href="structcutlass_1_1reduction_1_1BatchedReduction.html">cutlass::reduction::BatchedReduction</a>&lt; BatchedReductionTraits_ &gt;::functor</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a9c9d8378c735597f39927c6ab32519ef"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename BatchedReductionTraits_ &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structcutlass_1_1reduction_1_1BatchedReduction.html#a213c6812458c008435ed3ea710fe2454">Params</a> const&amp; <a class="el" href="structcutlass_1_1reduction_1_1BatchedReduction.html">cutlass::reduction::BatchedReduction</a>&lt; BatchedReductionTraits_ &gt;::params</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="batched__reduction_8h_source.html">batched_reduction.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
